package com.achobeta.recruitment.service.wx;

import com.achobeta.recruitment.model.WxUser;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-10-27
 * Time: 21:55
 */
public interface WxUserService {

    /**
     * 拉取用户信息，并返回当前授权用户的信息
     * @param code
     * @return
     */
    @Transactional // 两次写操作
    WxUser getSignUpUserInfo(String code);


    WxUser selectWxUserByOpenid(String openid);

}
